{* menu_list *}
{load_presentation_object filename="menu_list" assign="obj"}
{* Start menu list here *}
<ul>
    {* Loop through the list of menus *}
    {section name=i loop=$obj->mMenus}
        {assign var=selected value=""}
        {* Verify if the department is selected to decide what CSS style to use *}
        {if ($obj->mSelectedMenu == $obj->mMenus[i].menuId)}
            {assign var=selected value="class=\"selected\""}    
        {/if}
        <li>
            {* Generate a link for a new department in the list *}
            <a {$selected} href="{$obj->mMenus[i].link_to_page}">{$obj->mMenus[i].menu}</a>
        </li>
    {/section}
</ul>
{* End menu list *}